home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 March / PC Plus Super CD (Issue 101) (March 1995).iso / tclite / include / link.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-27  |  639 b   |  26 lines

  1. #ifndef    LINK_H
  2. #define    LINK_H
  3.  
  4. #include "object.h"
  5.  
  6. extern const Class class_Link;
  7.  
  8. class LinkedList;
  9.  
  10. class Link: public Object {
  11.     Link* next;        // pointer to next Link or nil 
  12.     friend LinkedList;
  13. protected:
  14.     Link(const Link& nextlink)  { next = (Link*)&nextlink; }
  15.     Link()                      { next = (Link*)nil; }
  16. public:
  17.     ~Link();
  18.     Link* nextLink() const          { return next; }
  19.     Link* nextLink(Link* nextlink)    { next = nextlink; return next; }
  20.     virtual void deepenShallowCopy();
  21.     virtual const Class* isA() const;
  22.     virtual Object* shallowCopy() const;      // shouldNotImplement
  23. };
  24.  
  25. #endif
  26.